package com.atmilan.quartz.sync.pull.europe.service.impl;

import org.springframework.stereotype.Service;

import com.atmilan.quartz.model.entity.europe.EuropeBrand;
import com.atmilan.quartz.sync.pull.europe.mapper.EuropeBrandMapper;
import com.atmilan.quartz.sync.pull.europe.service.IEuropeBrandService;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

@Service
public class EuropeBrandServiceImpl extends ServiceImpl<EuropeBrandMapper, EuropeBrand> implements IEuropeBrandService {
    @Override
    public EuropeBrand getBrandByBrandId(Integer brandId) {
        return this.getOne(Wrappers.<EuropeBrand>lambdaQuery()
                .eq(EuropeBrand::getBrandId,brandId), false);
    }
}
